#include<iostream>
#include<string>
using namespace std;
template<class NameType,class AgeType>
class Person
{
public:
	Person(NameType name,AgeType age)
	{
		this->m_Name = name;
		this->m_Age = age;
	}
	NameType m_Name;
	AgeType m_Age;
};
void test01()
{
	Person<string,int> p1("tom", 18);
	cout << p1.m_Age << endl;
	cout << p1.m_Name << endl;
}
int main()
{
	test01();

	system("pause");
	
	return 0;
}